# import faulthandler
import platform
import sys
import os
from PyQt5.QtWidgets import QApplication
from service.lance import Window

if platform.system() == "Linux":
    xcb_path = ' /home/lz/miniconda3/envs/lance/lib/python3.9/site-packages/cv2/qt/plugins'
    os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = xcb_path
    
# faulthandler.enable()

if __name__ == "__main__":
    app = QApplication(sys.argv)
    window = Window()
    window.show()
    sys.exit(app.exec_())
